package cn.wp.common.core;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 全局属性操作入口
 * Created by chenyb on 2019/09/24
 */
@Component
public class WpPropertiesObject {

    private static WpPropertiesObject INSTANCE;

    @Autowired
    private WpProperties wpProperties;

    public static WpPropertiesObject getInstance(){
        return INSTANCE;
    }

    public void instance(WpPropertiesObject propertiesObject){
        INSTANCE = propertiesObject;
    }

    public WpProperties getWpProperties() {
        return wpProperties;
    }

}
